/*
 * @Descripttion:
 * @version:
 * @Author: ybac
 * @Date: 2023-05-29 10:43:07
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2023-07-05 10:40:23
 */
module.exports = {
  devServer: {
    disableHostCheck: true,
    // https: true,
  },
  css: {
    loaderOptions: {
      postcss: {
        plugins: [
          require("postcss-pxtorem")({
            rootValue: ({ file }) => {
              return file.indexOf("vant") !== -1 ? 37.5 : 75;
            },
            propList: ["*"],
          }),
        ],
      },
    },
  },
};
